#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TrGroupMember : Business.BusinessBase<TrGroupMember, int>
	{
		#region Fields and Properties

		private String positionTitle = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PositionTitle
		{
			get { return positionTitle; }
			set
			{
				if (value != positionTitle)
				{
					MarkChanged("PositionTitle");
					positionTitle = value;
				}
			}
		}

		private DateTime joinDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime JoinDate
		{
			get { return joinDate; }
			set
			{
				if (value != joinDate)
				{
					MarkChanged("JoinDate");
					joinDate = value;
				}
			}
		}

		private String teacherCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeacherCode
		{
			get { return teacherCode; }
			set
			{
				if (value != teacherCode)
				{
					MarkChanged("TeacherCode");
					teacherCode = value;
				}
			}
		}

		private String trGroup = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrGroup
		{
			get { return trGroup; }
			set
			{
				if (value != trGroup)
				{
					MarkChanged("TrGroup");
					trGroup = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TrGroupMember()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TrGroupMember DataSelect(int id)
		{
			return Services.DALService.TrGroupMemberService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TrGroupMemberService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TrGroupMemberService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TrGroupMemberService.Delete(this);
		}

		#endregion Base overrides
	}
}
